<template>
  <div v-if="value">
    <div>
      <slot />
      <span @click="close">X</span>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    close () {
      this.$emit('input', false)
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
